package com.gxc.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 配置文件 配置类.
 *
 * @author 宫新程
 * @since 2018/12/18 3:37 PM
 */
@Component
@ConfigurationProperties(prefix = "com.gxc")
@PropertySource("classpath:config/db.properties")
@Data
public class PropertiesConfigBean {

  private String name;
  private String age;
}
